<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../css/bootstrap.css" />
	</head>

	<body>
		<div id="ctype">
			<div class="col-sm-3">
				<div id="tree"></div>
			</div>
			<div class="col-sm-9">
				<div id="editor">
					<div class="modal-title">
					</div>
					<form class="bs-example bs-example-form" role="form" id="form1">
						<div class="input-group">
							<span class="input-group-addon">文字标题</span>
							<input type="text" class="form-control" name="name" id="division">
						</div>
						<div class="input-group">
							<input type="hidden" name="cid" id="cid" />
							<input type="hidden" name="id" id="id" />
							<span class="input-group-addon">分支描述</span>
							<textarea type="text" class="form-control" value="" name="descript" id="descript"></textarea>
						</div>
						<br>

						<div class="input-group">
							<input type="hidden" name="parentId" id="parentid" />
							<!--<input type="text" class="form-control" name="parent" id="division">
							<span class="input-group-addon">所属分支</span>-->
						</div>
						<br>

						<div>
							<input type="button" class="btn-group-sm" id="add_sub" value="创建子目录" style="margin: 20px;" data-toggle='modal' data-target='#addModal' />
							<input type="reset" class="btn-group-sm" id="res" value="重置" style="margin: 20px;" />
							<input type="button" class="btn-group-sm" id="save_modi" value="保存修改" style="margin: 20px;" />
							<input type="button" class="btn-group-sm" id="del" value="删除当前选中分支" style="margin: 20px;" data-toggle='modal' data-target='#myModal1' />
							<input type="button" class="btn-group-sm" id="upl" value="上传文件" style="margin: 20px;" data-toggle='modal' data-target='#uploadModal' />
						</div>
					</form>
					<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="addModalLabel" aria-hidden="true">
						<div class="modal-dialog">
							<div class="modal-content">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                  &times;
           					</button>
									<h4 class="modal-title" id="myModalLabel">您确定要修改该分支的信息吗？</h4>
								</div>
								<div class="modal-body">
									<form id="submitupdate">
										<label>目录名  </label>
										<input type="text" name="name" id="name" /><br />
										<label>目录描述</label>
										<textarea type="text" class="form-control" value="" name="descript" id="descript"></textarea><br />
										<input type="hidden" name="parentId" id="parentid1" />
										<input type="hidden" name="cid" id="cid1" />
									</form>
								</div>
								<div class="modal-footer">
									<button type="button" class="btn btn-default" data-dismiss="modal" id="close">关闭</button>
									<button type="button" class="btn btn-primary" id="confirm">提交更改</button>
								</div>
							</div>
							<!-- /.modal-content -->
						</div>
						<!-- /.modal -->
					</div>
					<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
						<div class="modal-dialog">
							<div class="modal-content">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                  &times;
           					</button>
									<h4 class="modal-title" id="myModalLabel">您确定要删除该分支吗？</h4>
								</div>
								<div class="modal-body">
									<form id="submitdelete">
										<label>删除分支</label>
										<input type="hidden" name="cid" id="cid" />
										<input type="hidden" name="parenId" id="parentid" />
									</form>
								</div>
								<div class="modal-footer">
									<button type="button" class="btn btn-default" data-dismiss="modal" id="close1">关闭</button>
									<button type="button" class="btn btn-primary" id="confirm1">确认删除</button>
								</div>
							</div>
							<!-- /.modal-content -->
						</div>
						<!-- /.modal -->
					</div>
					<div class="modal fade" id="uploadModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
						<div class="modal-dialog">
							<div class="modal-content">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                  &times;
           					</button>
									<h4 class="modal-title" id="myModalLabel">请选择需要上传的文件</h4>
								</div>
								<div class="modal-body">
									<div class="">
										<form action="upload" enctype="multipart/form-data" method="post" id="upl">
											<label>视频标题 </label>
											<input type="text" name="name" />
											<label>视频描述 </label><br />
											<textarea name="description" type="text" class="form-control"></textarea><br />
											<input type="file" name="multifile" />
											<input type="submit" value="上传    " id="uploadfire" />
											<input type="hidden" name="id" id="catalog_id">
										</form>
									</div>
								</div>
								<div class="modal-footer">
									<button type="button" class="btn btn-default" data-dismiss="modal" id="close1">关闭</button>
								</div>
							</div>
							<!-- /.modal-content -->
						</div>
						<!-- /.modal -->
					</div>
				</div>
			</div>
		</div>
		</div>
	</body>

</html>